home *** CD-ROM | disk | FTP | other *** search
- echo off
- cls
- echo ***********************************************************************
- echo * PC SHORTWAVE MONITOR(tm) *
- echo * "The Logging Organizer"(tm) *
- echo * Copyright (c) 1991-1996 S. Gitlin; All rights reserved. *
- echo * *
- echo * * * First Time Hard Drive Installation. * * *
- echo * *
- echo * This install program is only for new users of the program - *
- echo * all files will be installed in a new directory, \PCSWM. *
- echo * *
- echo * Do not use for upgrades - See file UPGRADE.DOC for upgrade info. *
- echo * *
- echo * Register PC SHORTWAVE MONITOR(tm) on CompuServe (GO SWREG) - *
- echo * Select registration ID: 10171 *
- echo * *
- echo * Press [ESC] to cancel - any other key to continue. *
- echo * *
- echo ***********************************************************************
- ask
- if not errorlevel 28 if errorlevel 27 goto end
- :next
- set s=x
- cls
- echo ***********************************************************************
- echo * *
- echo * You are installing files FROM floppy drive A or B ? *
- echo * *
- echo * Indicate drive letter A, B, or [ESC] to cancel. *
- echo * *
- echo **** ****
- ask
- if not errorlevel 67 if errorlevel 66 set s=B:
- if not errorlevel 66 if errorlevel 65 set s=A:
- if not errorlevel 28 if errorlevel 27 goto end
- if %s%==B: goto goodkey
- if %s%==A: goto goodkey
- echo **** INVALID DRIVE SPECIFIED. ****
- pause
- goto next
- :goodkey
- echo **** ****
- echo * *
- echo * You are installing files FROM floppy drive %s% ? (Y/N) or [ESC]. *
- echo * *
- echo ***********************************************************************
- ask
- if not errorlevel 90 if errorlevel 89 goto cfiles
- if not errorlevel 79 if errorlevel 78 goto next
- if not errorlevel 28 if errorlevel 27 goto end
- :cfiles
- cls
- echo ***********************************************************************
- echo * *
- echo * Checking original program disk for complete file listing... *
- echo * *
- echo ***********************************************************************
- echo checking for %s%\SW3.EXE
- if exist %s%\sw3.exe goto nf2
- :loop1
- cls
- echo ***********************************************************************
- echo * Insert Original Program Disk Containing 25 files into drive %s% *
- echo * *
- echo * [ESC] to cancel. *
- echo ***********************************************************************
- ask
- if not errorlevel 28 if errorlevel 27 goto end
- goto cfiles
- :nf2
- echo checking for %s%\LOG2.DBF
- if exist %s%\log2.dbf goto nf3
- goto loop1
- :nf3
- echo checking for %s%\CTRYSRT2.NTX
- if exist %s%\ctrysrt2.ntx goto nf4
- goto loop1
- :nf4
- echo checking for %s%\DATESRT2.NTX
- if exist %s%\datesrt2.ntx goto nf5
- goto loop1
- :nf5
- echo checking for %s%\FREQSRT2.NTX
- if exist %s%\freqsrt2.ntx goto nf6
- goto loop1
- :nf6
- echo checking for %s%\LGENTRY2.NTX
- if exist %s%\lgentry2.ntx goto nf7
- goto loop1
- :nf7
- echo checking for %s%\MASTER2.NTX
- if exist %s%\master2.ntx goto nf8
- goto loop1
- :nf8
- echo checking for %s%\MAILCTRY.NTX
- if exist %s%\mailctry.ntx goto nf9
- goto loop1
- :nf9
- echo checking for %s%\OWNER.MEM
- if exist %s%\owner.mem goto nf10
- goto loop1
- :nf10
- echo checking for %s%\HOLDCOL.MEM
- if exist %s%\holdcol.mem goto nf11
- goto loop1
- :nf11
- echo checking for %s%\MANUAL.DOC
- if exist %s%\manual.doc goto nf12
- goto loop1
- :nf12
- echo checking for %s%\LICENSE.DOC
- if exist %s%\license.doc goto nf13
- goto loop1
- :nf13
- echo checking for %s%\ORDER.DOC
- if exist %s%\order.doc goto nf14
- goto loop1
- :nf14
- echo checking for %s%\UPGRADE.DOC
- if exist %s%\upgrade.doc goto nf15
- goto loop1
- :nf15
- echo checking for %s%\ASK.COM
- if exist %s%\ask.com goto nf16
- goto loop1
- :nf16
- echo checking for %s%\PCSWM.CFG
- if exist %s%\pcswm.cfg goto nf17
- goto loop1
- :nf17
- echo checking for %s%\MAILDATA.DBF
- if exist %s%\maildata.dbf goto nf18
- goto loop1
- :nf18
- echo checking for %s%\HOLD1.MEM
- if exist %s%\hold1.mem goto nf19
- goto loop1
- :nf19
- echo checking for %s%\HOLD2.MEM
- if exist %s%\hold2.mem goto nf20
- goto loop1
- :nf20
- echo checking for %s%\HOLD3.MEM
- if exist %s%\hold3.mem goto nf21
- goto loop1
- :nf21
- echo checking for %s%\HOLD4.MEM
- if exist %s%\hold4.mem goto nf22
- goto loop1
- :nf22
- echo checking for %s%\PRINTER1.MEM
- if exist %s%\printer1.mem goto nf23
- goto loop1
- :nf23
- echo checking for %s%\FILE_ID.DIZ
- if exist %s%\file_id.diz goto nf24
- goto loop1
- :nf24
- echo checking for %s%\PRINTER2.MEM
- if exist %s%\printer2.mem goto next1
- goto loop1
- :next1
- echo FILE CHECKING COMPLETE.
- pause
- :next1a
- set t=y
- cls
- echo **********************************************************************
- echo * *
- echo * You are installing files TO hard drive C, D, E, F, G, or H ? *
- echo * *
- echo * Indicate drive letter C, D, E, F, G, H, or [ESC]. *
- echo * *
- echo **** ****
- ask
- if not errorlevel 73 if errorlevel 72 set t=H:
- if not errorlevel 72 if errorlevel 71 set t=G:
- if not errorlevel 71 if errorlevel 70 set t=F:
- if not errorlevel 70 if errorlevel 69 set t=E:
- if not errorlevel 69 if errorlevel 68 set t=D:
- if not errorlevel 68 if errorlevel 67 set t=C:
- if not errorlevel 28 if errorlevel 27 goto end
- if %t%==H: goto gkey2
- if %t%==G: goto gkey2
- if %t%==F: goto gkey2
- if %t%==E: goto gkey2
- if %t%==D: goto gkey2
- if %t%==C: goto gkey2
- echo **** INVALID DRIVE SPECIFIED. ****
- pause
- goto next1a
- :gkey2
- echo **** ****
- echo * *
- echo * You are installing files TO hard drive %t% ? (Y/N) or [ESC]. *
- echo * *
- echo **********************************************************************
- ask
- if not errorlevel 90 if errorlevel 89 goto next2
- if not errorlevel 79 if errorlevel 78 goto next1a
- if not errorlevel 28 if errorlevel 27 goto end
- :next2
- cls
- echo **********************************************************************
- echo * *
- echo * You are installing files from drive %s% to drive %t% ? *
- echo * *
- echo * (Y/N) or [ESC] *
- echo * *
- echo **********************************************************************
- ask
- if not errorlevel 90 if errorlevel 89 goto next3
- if not errorlevel 79 if errorlevel 78 goto next
- if not errorlevel 28 if errorlevel 27 goto end
- :next3
- cls
- if not exist %t%\nul goto message
- if exist %t%\pcswm\nul goto next4
- goto next5
- :message
- %s%
- cls
- echo **********************************************************************
- echo * *
- echo * Install program does not recognize drive %t% ... *
- echo * *
- echo * [S]elect new hard drive letter? *
- echo * [ESC] to cancel. *
- echo * *
- echo * Indicate choice S or [ESC]. *
- echo * *
- echo **********************************************************************
- ask
- if not errorlevel 84 if errorlevel 83 goto next1a
- if not errorlevel 28 if errorlevel 27 goto end
- :next4
- cls
- echo **********************************************************************
- echo * *
- echo * Drive %t% already contains a directory /PCSWM. *
- echo * *
- echo * Files in this directory will be overwritten! *
- echo * Previous logging records will be erased. *
- echo * *
- echo * [P]roceed with installation? *
- echo * [S]elect new hard drive letter? *
- echo * [ESC] to cancel. *
- echo * *
- echo * Indicate choice P, S, or [ESC]. *
- echo * *
- echo **********************************************************************
- ask
- if not errorlevel 84 if errorlevel 83 goto next1a
- if not errorlevel 81 if errorlevel 80 goto next5
- if not errorlevel 28 if errorlevel 27 goto end
- :next5
- cls
- echo **************************************************************************
- echo * Installing PC SHORTWAVE MONITOR(tm) in %t%\PCSWM *
- echo **************************************************************************
- mkdir %t%\pcswm
- copy %s%\*.* %t%\pcswm
- if exist c:\config.sys goto cfgmsg
- copy %s%\pcswm.cfg c:\config.sys
- echo ***************************************************************************
- echo * PC SHORTWAVE MONITOR(tm) installation complete *
- echo * *
- echo * To start program: *
- echo * *
- echo * - type SW3 [ENTER] *
- echo ***************************************************************************
- cd %t%\pcswm
- goto end
- :cfgmsg
- cls
- echo ***************************************************************************
- echo * PC SHORTWAVE MONITOR(tm) files transferred. *
- echo * *
- echo * Program detects a pre-existing CONFIG.SYS file. *
- echo * The following MINIMUM values must be present for FILES and BUFFERS, *
- echo * *
- echo * FILES=20 *
- echo * BUFFERS=8 *
- echo * *
- echo * Please check and modify your CONFIG.SYS file if necessary. *
- echo * See MANUAL.DOC for further information. *
- echo * *
- echo * After checking/modifying CONFIG.SYS: *
- echo * *
- echo * - log onto drive containing installed program. *
- echo * - change to \PCSWM subdirectory. *
- echo * - type SW3 [ENTER]. *
- echo ***************************************************************************
- :end
- set s=
- set t=
-